package com.yuyou.fn.activity.service;

import com.github.wens.mybatisplus.plugins.Page;
import com.yuyou.fn.activity.entity.Activity;
import com.yuyou.fn.activity.entity.ActivityTarget;
import com.github.wens.framework.service.ISuperService;
import com.yuyou.fn.activity.vo.ActivityQueryVo;
import com.yuyou.fn.activity.vo.ActivityTargetChangeVo;
import com.yuyou.fn.activity.vo.ActivityTargetDetailVo;
import com.yuyou.fn.activity.vo.ActivityTargetQueryVo;
import com.yuyou.fn.platform.permission.DataPermission;
import org.apache.poi.xssf.streaming.SXSSFWorkbook;

import java.util.Date;
import java.util.List;

/**
 *
 * ActivityTarget 表数据服务层接口
 *
 */
public interface IActivityTargetService extends ISuperService<ActivityTarget,Long> {

    void updateActivityNameAndStartDateByActivityId(long activityId, String activityName, Date activityStartDate );


    List<ActivityTarget> findActivityTargetByActivityIdCampusIds(long activityId,List<Long> campusIds);

    ActivityTarget findActivityTargetByActivityIdCampusId(long activityId,long campusId);

    void  changeActivityTargetByVo(ActivityTargetChangeVo activityTargetChangeVo);

    Page<ActivityTargetDetailVo> findActivityTargetPageByQueryVo(DataPermission dataPermission, ActivityTargetQueryVo activityTargetQueryVo, int pageNo, int pageSize);

    SXSSFWorkbook exportActivityTarget(DataPermission dataPermission, ActivityTargetQueryVo activityTargetQueryVo);

}